import axios from 'axios';
import { postRequest, getRequest, postDownload } from '/@/lib/axios';

export const tbZincPotOutApi = {
  getData(param: any){
    return postRequest('/zinc/tbZincPotOut/findByZincPotOut', param)
  },
  findByPage_all(param: any){
    return postRequest('/zinc/tbZincPotHis/findByPage_all', param)
  },
  getP8Calc(){
    return postRequest('/eapi/zincPot/getP8Calc', null)
  },
  getWindTurbine(){
    return postRequest('/eapi/zincPot/getWindTurbine', null)
  },
  getMoltenZincHistory(param: any){
    return postRequest('/eapi/zincPot/pageZincPotHis', param)
  },
  exportMoltenZincHistory(param: any){
    return postDownload('/eapi/zincPot/exportExcel', param)
  }
};
export const zincApi = {
  getTableData ( param: any )
  {
    return postRequest( '/zinc/tbCgl1870ZinpotHis/findByPage_a', param );
  },
  getGraph ( param: any )
  {
    return postRequest( '/mongodb/mongodb_data/bensteel/query_a', param );
  },
  getExpandData ( param: any )
  {
    return postRequest( '/zinc/tbCgl1870ZinpotHis/findBy_grade', param );
  },
};